package utils;

public class LyyLogUtil {
    private static final int VERBOSE=5;
    private static final int DEBUG=4;
    private static final int INFO=3;
    private static final int WARN=2;
    private static final int ERROR=1;
    private static final int NO_LOG=0;


    private static  final int LEVEL=VERBOSE;//改变这个可以控制日志的打印级别

    public static void logV(String message){
        if(LEVEL>=VERBOSE){
            System.out.println("VERBOSE："+message);
        }
    }

    public static void logD(String message){
        if(LEVEL>=DEBUG){
            System.out.println("DEBUG："+message);
        }
    }

    public static void logI(String message){
        if(LEVEL>=INFO){
            System.out.println("INFO："+message);
        }
    }

    public static void logW(String message){
        if(LEVEL>=WARN){
            System.out.println("WARN："+message);
        }
    }

    public static void logeE(String message){
        if(LEVEL>=ERROR){
            System.out.println("ERROR："+message);
        }
    }

}
